package com.atguigu.cloud;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author bairimengchang
 * @version 1.0
 * @project cloud2024
 * @description 启动类
 * @date 2024/9/13
 */
@SpringBootApplication
@MapperScan("com.atguigu.cloud.mapper")
@EnableDiscoveryClient
@RefreshScope // 动态刷新consul配置，目前实测没有注解也能实时刷新
@Slf4j
public class Main8002 {
    public static void main(String[] args) {
        log.info("Main8002开始启动");
        SpringApplication.run(Main8002.class,args);
    }
}